package com.lemon.cloud.exception;

import com.lemon.cloud.command.Command;
import com.lemon.cloud.representation.Response;

/**
 * @author lemon
 * @version 1.0
 * @description: TODO
 * @date Create by lemon on 2019-09-14 18:24
 */
public interface ExceptionHandler {
    /**
     * @param command
     * @param response
     * @param exception
     * @return void
     * @description
     * @author lemon
     * @date 2019-09-15 17:06
     */
    void handleException(Command command, Response response, Exception exception);

    /**
     * @param command
     * @param response
     * @param throwable
     * @return void
     * @description
     * @author lemon
     * @date 2019-09-15 17:06
     */
    void handleThrowable(Command command, Response response, Throwable throwable);
}
